package com.personal.portal.admin.service;

import com.personal.portal.common.entity.Result;
import com.personal.portal.admin.entity.ContactMessage;

import java.util.List;

public interface ContactMessageService {
    ContactMessage queryById(Long id);

    ContactMessage queryByEntity(ContactMessage contactMessage);

    List<ContactMessage> queryList(ContactMessage contactMessage);

    Result.PageResult<ContactMessage> queryPage(int pageNum, int pageSize, ContactMessage contactMessage);

    int insert(ContactMessage contactMessage);

    int update(ContactMessage contactMessage);

    int deleteById(Long id);

    List<Long> deleteBatch(List<Long> ids);
}